]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: Do not hard-code <super> as overlay-key
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 11 Aug 2012 00:33:20 +0000 (02:33 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 16 Aug 2012 07:44:22 +0000 (09:44 +0200)
Use the new OVERLAY_KEY keybinding action instead of special-casing
the overlay-key to make sure the same key will be used in- and outside
the overview.

https://bugzilla.gnome.org/show_bug.cgi?id=665547

js/ui/main.js

index 766d8653d16f44e82fb7b75dbd3842f913e3bda1..adfaae2e4ae5d27ceb09aed5b3ad2243838e63ca 100644 (file)
@@ -588,12 +588,6 @@ function _globalKeyPressHandler(actor, event) {
     // This relies on the fact that Clutter.ModifierType is the same as Gdk.ModifierType
     let action = global.display.get_keybinding_action(keyCode, modifierState);
 
-    // This isn't a Meta.KeyBindingAction yet
-    if (symbol == Clutter.Super_L || symbol == Clutter.Super_R) {
-        overview.hide();
-        return true;
-    }
-
     if (action == Meta.KeyBindingAction.SWITCH_PANELS) {
         ctrlAltTabManager.popup(modifierState & Clutter.ModifierType.SHIFT_MASK,
                                 modifierState);
@@ -636,6 +630,7 @@ function _globalKeyPressHandler(actor, event) {
             getRunDialog().open();
             return true;
         case Meta.KeyBindingAction.PANEL_MAIN_MENU:
+        case Meta.KeyBindingAction.OVERLAY_KEY:
             overview.hide();
             return true;
     }